{% extends 'base.html' %}

{% block link %}
    <meta charset="UTF-8">
    <link rel="dns-prefetch" href="//apps.bdimg.com">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=0.0, viewport-fit=cover">
    <meta http-equiv="Cache-Control" content="no-transform"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <meta name='robots' content='max-image-preview:large'/>
    <title>逐梦大陆-用户中心</title>

    <meta name="description" content="用户中心-逐梦大陆逐梦大陆">

    <link rel='stylesheet' id='_main-css'
          href='/static/css/user-site.css' type='text/css'
          media='all'/>
    <link rel='stylesheet' id='_main-css'
          href='/static/css/site.css' type='text/css'
          media='all'/>
    <script src="../../static/jquery/jquery.3.6.min.js"></script>

{% endblock %}


{% block content %}
    <main class="main-min-height">
        <div class="container">
            <div class="author-header mb20 radius8 main-shadow main-bg full-widget-sm">
                <div class="page-cover"><img class="lazyload fit-cover user-cover user-cover-id-1"
                                             src="/static/image/img_6.png"

                                             alt="用户封面">
                    <div class="absolute linear-mask"></div>
                    <div class="abs-center right-bottom box-body cover-btns"><span class="dropup pull-right"><a
                            href="javascript:;" class="item mr3 toggle-radius" data-toggle="dropdown"><svg class="icon"
                                                                                                           aria-hidden="true"><use
                            xlink:href="#icon-menu_2"></use></svg></a><ul class="dropdown-menu"><li><a
                            href="https://www.zmdl.top/author/1" class=""><i
                            class="fa fa-map-marker mr6"></i>我的主页</a><li><li><a mobile-bottom="true"
                                                                                    data-height="330"
                                                                                    data-remote="https://www.zmdl.top/wp-admin/admin-ajax.php?action=user_cover_set_modal"
                                                                                    class="avatar-set-link "
                                                                                    href="javascript:;"
                                                                                    data-toggle="RefreshModal"><i
                            class="fa fa-camera mr6" aria-hidden="true"></i>修改封面</a><li></ul></span></div>
                </div>
                <div class="header-content">
                    <div class="flex header-info relative hh">
                        <div class="flex0 header-avatar">
                            <div class="hover-show relative"><span class="avatar-img"><img
                                    alt="头像-逐梦大陆"
                                    src="/static/photo/{{ user.photo }}"
                                    class="lazyload avatar avatar-id-1"></span><a mobile-bottom="true" data-height="410"
                                                                                  data-remote="https://www.zmdl.top/wp-admin/admin-ajax.php?action=user_avatar_set_modal"
                                                                                  class="avatar-set-link absolute hover-show-con flex jc xx"
                                                                                  href="javascript:;"
                                                                                  data-toggle="RefreshModal"><i
                                    class="fa fa-camera mb6" aria-hidden="true"></i>修改头像</a></div>
                        </div>
                        <div class="flex1">
                            <div class="em12 name"><span class="display-name">{{ user.username }}<img
                                    class="lazyload img-icon ml3"
                                    src="https://www.zmdl.top/wp-content/themes/zibll/img/thumbnail-null.svg"
                                    data-src="https://www.zmdl.top/wp-content/themes/zibll/img/user-level-1.png"
                                    data-toggle="tooltip" title="LV1"
                                    alt="等级-LV1-逐梦大陆逐梦大陆"></span>
                            </div>
                            <div class="desc user-identity flex ac hh"><a data-class="full-sm" mobile-bottom="true"
                                                                          data-height="240"
                                                                          data-remote="https://www.zmdl.top/wp-admin/admin-ajax.php?action=user_medal_info_modal&#038;id=1"
                                                                          class="user-medal-info but"
                                                                          href="javascript:;"
                                                                          data-toggle="RefreshModal">
                                <svg class="icon" aria-hidden="true">
                                    <use xlink:href="#icon-medal-color"></use>
                                </svg>
                                获取徽章<i class="fa fa-angle-right" style="margin: 0 0 0 .3em;"></i></a><span
                                    class="but" data-clipboard-tag="用户名" data-clipboard-text="QIAN"><i
                                    class="fa fa-user-o"></i>{{ user.username }}</span><span class="but"
                                                                                             data-clipboard-tag="邮箱"
                                                                                             data-clipboard-text="2679274354@qq.com"><i
                                    class="fa fa-envelope-o"></i>{{ user.email }}</span></div>
                        </div>
                        <div class="header-btns flex0 flex ac"><a data-class="modal-mini" mobile-bottom="true"
                                                                  data-height="240"
                                                                  data-remote="https://www.zmdl.top/wp-admin/admin-ajax.php?action=checkin_details_modal"
                                                                  class="but c-blue ml10 pw-1em radius checkin-details-link"
                                                                  href="javascript:;" data-toggle="RefreshModal"><i
                                class="fa fa-calendar-check-o"></i>已签到</a><a href="https://www.zmdl.top/message/news"
                                                                                class="msg-news-icon ml10"><span
                                class="toggle-radius msg-icon"><i class="fa fa-bell-o"
                                                                  aria-hidden="true"></i></span></a></div>
                    </div>
                </div>
            </div>
            <div class="fluid-widget"></div>
            <div class="article-all">
                <div style="height: 50px;">
                    <ul>
                        <li><a href="" style="font-size: 20px;">收藏</a></li>
                    </ul>

                </div>
                <div>
                        <div class="index">
                            {% for question in questions %}
                                <div class="col-12 row" style="margin-bottom: 15px;">
                                    <div class="col-sm-2 col-2 thumb d-none d-sm-block"
                                         style="display: inline-block;width: 90px;">
                                        <img src="{{ url_for('static',filename = 'uploads/'+ question.question.cover) }}"
                                             class="img-fluid"
                                             style="height: 120px;border-radius: 10px;margin-left: 10px;"/>
                                    </div>
                                    <div class="col-sm-9 col-xs-12" style="display: inline-block;">
                                        <div class="title" style="font-size: 20px;"><a
                                                href="{{ url_for('index.detail',id = question.question.id) }}">{{ question.question.title }}</a>
                                        </div>
                                        <div style="margin-top: 20px;">
                                            类别：{{ question.question.category.name }}&nbsp;&nbsp;&nbsp;
                                            日期：{{ question.question.create_time }}&nbsp;&nbsp;&nbsp;阅读：{{ question.question.readcount }}
                                            次&nbsp;&nbsp;&nbsp;消耗积分：{{ question.question.credit }}
                                            分
                                        </div>
                                        <div>
                                            <div style="float: left;margin-top: 20px;display: inline-block">
                                            <span style="margin-left: 5px;" id="support"
                                                  data-article-id= {{ question.question.id }}><img
                                                    src="/static/icon/点赞2.svg" alt="" width="24px" height="24px">&nbsp;&nbsp;&nbsp;{{ question.question.up }}</span>

                                                <span style="margin-left: 10px;" id="support"
                                                      data-article-id= {{ question.question.id }}><img
                                                        src="/static/icon/点踩2.svg" alt="" width="24px" height="24px">&nbsp;&nbsp;&nbsp;{{ question.question.up }}</span>


                                                <span style="margin-left: 10px;" id="comments"
                                                      data-article-id= {{ question.question.id }}><img
                                                        src="/static/icon/评论2.svg" alt="" width="24px" height="24px">&nbsp;&nbsp;&nbsp;{{ question.question.replycount }}</span>
                                            </div>
                                            <div style="display: inline-block;float: right">
                                                <button style="margin-left: 15px;" type="button"
                                                        class="btn btn-outline-danger" id="cancle-col"
                                                        data-article-id="{{ question.question.id }}">取消收藏
                                                </button>

                                            </div>
                                        </div>


                                    </div>
                                </div>

                            {% endfor %}


                        </div>
                    </div>

            </div>

        </div>
        <div class="container fluid-widget">
            <div class="theme-box">
                <div class="yiyan-box main-bg text-center box-body radius8 main-shadow">
                    <div class="yiyan"></div>
                </div>
            </div>
        </div>
    </main>
{% endblock %}


{% block bottom %}
    <script type="text/javascript" src="/static/js/auth/article-all.js"></script>


{% endblock %}

<script type="text/javascript">
        window._win = {
            views: '',
            www: 'https://www.zmdl.top',
            uri: 'https://www.zmdl.top/wp-content/themes/zibll',
            ver: '6.9.2',
            imgbox: '1',
            imgbox_type: 'group',
            imgbox_thumbs: '1',
            imgbox_zoom: '1',
            imgbox_full: '1',
            imgbox_play: '1',
            imgbox_down: '1',
            sign_type: 'modal',
            signin_url: 'https://www.zmdl.top/user-sign?tab=signin&redirect_to=https%3A%2F%2Fwww.zmdl.top%2Fuser%2F',
            signup_url: 'https://www.zmdl.top/user-sign?tab=signup&redirect_to=https%3A%2F%2Fwww.zmdl.top%2Fuser%2F',
            ajax_url: 'https://www.zmdl.top/wp-admin/admin-ajax.php',
            ajaxpager: '',
            ajax_trigger: '<i class="fa fa-angle-right"></i>加载更多',
            ajax_nomore: '没有更多内容了',
            qj_loading: '',
            highlight_kg: '1',
            highlight_hh: '',
            highlight_btn: '',
            highlight_zt: 'enlighter',
            highlight_white_zt: 'enlighter',
            highlight_dark_zt: 'dracula',
            upload_img_size: '500',
            img_upload_multiple: '10',
            upload_video_size: '500',
            user_upload_nonce: '24ca5ff399',
            comment_upload_img: ''
        }














</script>

<script type='text/javascript' src='https://www.zmdl.top/wp-content/themes/zibll/js/libs/bootstrap.min.js?ver=6.9.2'
        id='bootstrap-js'></script>
<script type='text/javascript' src='https://www.zmdl.top/wp-content/themes/zibll/js/loader.js?ver=6.9.2'
        id='_loader-js'></script>
<script type='text/javascript'
        src='https://www.zmdl.top/wp-content/themes/zibll/inc/functions/bbs/assets/js/main.min.js?ver=6.9.2'
        id='forums-js'></script>


